package com.ly.tankgame;

import javax.swing.*;

public class HspTankGame01 extends JFrame {
//    定义MyPanel
    MyPanel mp=null;
    public static void main(String[] args) {
        new HspTankGame01();
    }
    public HspTankGame01()
    {
        MyPanel mp = new MyPanel();
        this.add(mp);//把面板（就是游戏的绘图）
        this.setSize(1000,750);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
